home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / develop / symcoff.arc / PLTBSEEK.C < prev    next >
Text File  |  1988-11-07  |  2KB  |  37 lines

  1. static char *sccsid[]={"@(#)pldtbseek.c 2.1",
  2. "Copyright 1985 by Motorola Inc."};
  3. #include <stdio.h>       /*DBG*/
  4. #ifdef PCPORT
  5. #include "/pld/src/hd/pcport.h"      /*PC-PORT*/
  6. #endif
  7. #include "../hd/pfilehdr.h"
  8. #include "../hd/pldfcn.h"
  9.  
  10. #include "../hd/pldf_dcl.h"        /*PC-PORT*/
  11. /****************** PLDTBSEEK ******************************************gs##*/
  12. /*                                                                        ##*/
  13. /*                                                                        ##*/
  14. /* Written by:  Michael Greenberg - MIL                                   ##*/
  15. /*                                                                        ##*/
  16. /* ACTION:                                                                ##*/
  17. /*      Seek to the symbol table of a common object file.                 ##*/
  18. /*                                                                        ##*/
  19. /* SYNOPSIS:                                                              ##*/
  20.       int pldtbseek(ldptr)                                              /*##*/
  21. /*    --------------------                                                ##*/
  22. register LDFILE *ldptr;                                                 /*##*/
  23. /*                                                                        ##*/
  24. /*************************************************************************##*/
  25. {
  26.  
  27.         if(HEADER(ldptr).f_symptr == 0)
  28.                 return(FAILURE);
  29.  
  30.         if(fseek(IOPTR(ldptr), (long) (OFFSET(ldptr)
  31.                 + HEADER(ldptr).f_symptr), 0) != 0)
  32.                 return(FAILURE);
  33.  
  34.         return(SUCCESS);
  35. }
  36. /* Copyright 1985 by Motorola Inc. */
  37.